package uk.co.hs.exceptions;

/**
 * Exception messages thrown when attempting to do database
 * transactions through the web interface.
 */
public class DataAccessExceptions
{
  public static final String REQUIRED = "errors.required";
  public static final String UNKNOWN = "database.exception.unknown";
  public static final String ALREADY_DELETED = "database.exception.already.deleted";
  public static final String ALREADY_UPDATED = "database.exception.already.updated";
  public static final String DATA_ACCESS_FAILURE = "database.exception.data.access.failure";
  public static final String DATA_INTEGRITY_VIOLATION = "database.exception.integrity.failure";
  public static final String DATA_RANGE_VIOLATION = "database.exception.range.failure";
  public static final String USER_SAVE_ROLE_DOESNT_EXIST = "errors.role.does.not.exist";
  public static final String USER_SAVE_FORWARDING_DOESNT_EXIST = "errors.forwarding.does.not.exist";
  public static final String REQUIRED_ROLE = "errors.role.required";
}
